package com.vcc.data.entity;




import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 用户角色
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_user_role")
public class UserRole extends BaseEntity implements Serializable{

    @Column(comment = "用户ID",value = "user_id")
    private Long userId;

    @Column(comment = "角色ID",value = "role_id")
    private Long roleId;

    public UserRole(){}

    public UserRole(Long userId,Long roleId){
        this.userId = userId;
        this.roleId = roleId;
    }
}
